/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ticket.serviceorgan.service;

import java.util.List;

import com.jeeplus.modules.ticket.serviceteach.entity.ServiceTeach;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.ticket.serviceorgan.entity.ServiceOrgan;
import com.jeeplus.modules.ticket.serviceorgan.mapper.ServiceOrganMapper;

/**
 * 评价机关中层干部Service
 * @author 刘明星
 * @version 2021-09-15
 */
@Service
@Transactional(readOnly = true)
public class ServiceOrganService extends CrudService<ServiceOrganMapper, ServiceOrgan> {

	public ServiceOrgan get(String id) {
		return super.get(id);
	}
	
	public List<ServiceOrgan> findList(ServiceOrgan serviceOrgan) {
		return super.findList(serviceOrgan);
	}
	
	public Page<ServiceOrgan> findPage(Page<ServiceOrgan> page, ServiceOrgan serviceOrgan) {
		return super.findPage(page, serviceOrgan);
	}

	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateGood(ServiceOrgan serviceOrgan){
		mapper.updateGood(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateCompetent(ServiceOrgan serviceOrgan){
		mapper.updateCompetent(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateBasisCompetentList(ServiceOrgan serviceOrgan){
		mapper.updateBasisCompetentList(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateNoCompetentList(ServiceOrgan serviceOrgan){
		mapper.updateNoCompetentList(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakGood(ServiceOrgan serviceOrgan){
		mapper.updateSpeakGood(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakCompetent(ServiceOrgan serviceOrgan){
		mapper.updateSpeakCompetent(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakBasisCompetentList(ServiceOrgan serviceOrgan){
		mapper.updateSpeakBasisCompetentList(serviceOrgan);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakNoCompetentList(ServiceOrgan serviceOrgan){
		mapper.updateSpeakNoCompetentList(serviceOrgan);
	}
	@Transactional(readOnly = false)
	public void save(ServiceOrgan serviceOrgan) {
		super.save(serviceOrgan);
	}
	
	@Transactional(readOnly = false)
	public void delete(ServiceOrgan serviceOrgan) {
		super.delete(serviceOrgan);
	}
	
}